﻿using System;
using System.Text;
using System.Data;
using System.Data.Common;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.Data.Schema.UnitTesting;
using Microsoft.Data.Schema.UnitTesting.Conditions;

namespace Tibet
{
    [TestClass()]
    public class addDrinkType : DatabaseTestClass
    {

        public addDrinkType()
        {
            InitializeComponent();
        }

        [TestInitialize()]
        public void TestInitialize()
        {
            base.InitializeTest();
        }
        [TestCleanup()]
        public void TestCleanup()
        {
            base.CleanupTest();
        }

        #region Designer support code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Microsoft.Data.Schema.UnitTesting.DatabaseTestAction dbo_addDrinkTypeTest_001_AddNewDrinkType_TestAction;
            Microsoft.Data.Schema.UnitTesting.DatabaseTestAction dbo_addDrinkTypeTest_001_AddNewDrinkType_PretestAction;
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(addDrinkType));
            Microsoft.Data.Schema.UnitTesting.Conditions.EmptyResultSetCondition emptyResultSetCondition1;
            Microsoft.Data.Schema.UnitTesting.Conditions.ChecksumCondition checksumCondition1;
            Microsoft.Data.Schema.UnitTesting.Conditions.RowCountCondition rowCountCondition1;
            Microsoft.Data.Schema.UnitTesting.DatabaseTestAction dbo_addDrinkTypeTest_002_DuplicateDrinkType_TestAction;
            Microsoft.Data.Schema.UnitTesting.DatabaseTestAction dbo_addDrinkTypeTest_002_DuplicateDrinkType_PretestAction;
            Microsoft.Data.Schema.UnitTesting.Conditions.ChecksumCondition checksumCondition2;
            Microsoft.Data.Schema.UnitTesting.Conditions.ChecksumCondition checksumCondition3;
            Microsoft.Data.Schema.UnitTesting.DatabaseTestAction dbo_addDrinkTypeTest_002_DuplicateDrinkType_PosttestAction;
            Microsoft.Data.Schema.UnitTesting.Conditions.EmptyResultSetCondition emptyResultSetCondition2;
            Microsoft.Data.Schema.UnitTesting.DatabaseTestAction dbo_addDrinkTypeTest_003_MissingParameterDrinkType_TestAction;
            Microsoft.Data.Schema.UnitTesting.Conditions.ChecksumCondition checksumCondition4;
            Microsoft.Data.Schema.UnitTesting.DatabaseTestAction dbo_addDrinkTypeTest_004_ParameterTruncation_TestAction;
            Microsoft.Data.Schema.UnitTesting.Conditions.ChecksumCondition checksumCondition5;
            Microsoft.Data.Schema.UnitTesting.DatabaseTestAction dbo_addDrinkTypeTest_004_ParameterTruncation_PretestAction;
            Microsoft.Data.Schema.UnitTesting.DatabaseTestAction dbo_addDrinkTypeTest_004_ParameterTruncation_PosttestAction;
            this.dbo_addDrinkTypeTest_001_AddNewDrinkTypeData = new Microsoft.Data.Schema.UnitTesting.DatabaseTestActions();
            this.dbo_addDrinkTypeTest_002_DuplicateDrinkTypeData = new Microsoft.Data.Schema.UnitTesting.DatabaseTestActions();
            this.dbo_addDrinkTypeTest_003_MissingParameterDrinkTypeData = new Microsoft.Data.Schema.UnitTesting.DatabaseTestActions();
            this.dbo_addDrinkTypeTest_004_ParameterTruncationData = new Microsoft.Data.Schema.UnitTesting.DatabaseTestActions();
            dbo_addDrinkTypeTest_001_AddNewDrinkType_TestAction = new Microsoft.Data.Schema.UnitTesting.DatabaseTestAction();
            dbo_addDrinkTypeTest_001_AddNewDrinkType_PretestAction = new Microsoft.Data.Schema.UnitTesting.DatabaseTestAction();
            emptyResultSetCondition1 = new Microsoft.Data.Schema.UnitTesting.Conditions.EmptyResultSetCondition();
            checksumCondition1 = new Microsoft.Data.Schema.UnitTesting.Conditions.ChecksumCondition();
            rowCountCondition1 = new Microsoft.Data.Schema.UnitTesting.Conditions.RowCountCondition();
            dbo_addDrinkTypeTest_002_DuplicateDrinkType_TestAction = new Microsoft.Data.Schema.UnitTesting.DatabaseTestAction();
            dbo_addDrinkTypeTest_002_DuplicateDrinkType_PretestAction = new Microsoft.Data.Schema.UnitTesting.DatabaseTestAction();
            checksumCondition2 = new Microsoft.Data.Schema.UnitTesting.Conditions.ChecksumCondition();
            checksumCondition3 = new Microsoft.Data.Schema.UnitTesting.Conditions.ChecksumCondition();
            dbo_addDrinkTypeTest_002_DuplicateDrinkType_PosttestAction = new Microsoft.Data.Schema.UnitTesting.DatabaseTestAction();
            emptyResultSetCondition2 = new Microsoft.Data.Schema.UnitTesting.Conditions.EmptyResultSetCondition();
            dbo_addDrinkTypeTest_003_MissingParameterDrinkType_TestAction = new Microsoft.Data.Schema.UnitTesting.DatabaseTestAction();
            checksumCondition4 = new Microsoft.Data.Schema.UnitTesting.Conditions.ChecksumCondition();
            dbo_addDrinkTypeTest_004_ParameterTruncation_TestAction = new Microsoft.Data.Schema.UnitTesting.DatabaseTestAction();
            checksumCondition5 = new Microsoft.Data.Schema.UnitTesting.Conditions.ChecksumCondition();
            dbo_addDrinkTypeTest_004_ParameterTruncation_PretestAction = new Microsoft.Data.Schema.UnitTesting.DatabaseTestAction();
            dbo_addDrinkTypeTest_004_ParameterTruncation_PosttestAction = new Microsoft.Data.Schema.UnitTesting.DatabaseTestAction();
            // 
            // dbo_addDrinkTypeTest_001_AddNewDrinkTypeData
            // 
            this.dbo_addDrinkTypeTest_001_AddNewDrinkTypeData.PosttestAction = null;
            this.dbo_addDrinkTypeTest_001_AddNewDrinkTypeData.PretestAction = dbo_addDrinkTypeTest_001_AddNewDrinkType_PretestAction;
            this.dbo_addDrinkTypeTest_001_AddNewDrinkTypeData.TestAction = dbo_addDrinkTypeTest_001_AddNewDrinkType_TestAction;
            // 
            // dbo_addDrinkTypeTest_001_AddNewDrinkType_TestAction
            // 
            dbo_addDrinkTypeTest_001_AddNewDrinkType_TestAction.Conditions.Add(checksumCondition1);
            dbo_addDrinkTypeTest_001_AddNewDrinkType_TestAction.Conditions.Add(rowCountCondition1);
            resources.ApplyResources(dbo_addDrinkTypeTest_001_AddNewDrinkType_TestAction, "dbo_addDrinkTypeTest_001_AddNewDrinkType_TestAction");
            // 
            // dbo_addDrinkTypeTest_001_AddNewDrinkType_PretestAction
            // 
            dbo_addDrinkTypeTest_001_AddNewDrinkType_PretestAction.Conditions.Add(emptyResultSetCondition1);
            resources.ApplyResources(dbo_addDrinkTypeTest_001_AddNewDrinkType_PretestAction, "dbo_addDrinkTypeTest_001_AddNewDrinkType_PretestAction");
            // 
            // emptyResultSetCondition1
            // 
            emptyResultSetCondition1.Enabled = true;
            emptyResultSetCondition1.Name = "emptyResultSetCondition1";
            emptyResultSetCondition1.ResultSet = 1;
            // 
            // checksumCondition1
            // 
            checksumCondition1.Checksum = "415599183";
            checksumCondition1.Enabled = true;
            checksumCondition1.Name = "checksumCondition1";
            // 
            // rowCountCondition1
            // 
            rowCountCondition1.Enabled = true;
            rowCountCondition1.Name = "rowCountCondition1";
            rowCountCondition1.ResultSet = 1;
            rowCountCondition1.RowCount = 1;
            // 
            // dbo_addDrinkTypeTest_002_DuplicateDrinkTypeData
            // 
            this.dbo_addDrinkTypeTest_002_DuplicateDrinkTypeData.PosttestAction = dbo_addDrinkTypeTest_002_DuplicateDrinkType_PosttestAction;
            this.dbo_addDrinkTypeTest_002_DuplicateDrinkTypeData.PretestAction = dbo_addDrinkTypeTest_002_DuplicateDrinkType_PretestAction;
            this.dbo_addDrinkTypeTest_002_DuplicateDrinkTypeData.TestAction = dbo_addDrinkTypeTest_002_DuplicateDrinkType_TestAction;
            // 
            // dbo_addDrinkTypeTest_002_DuplicateDrinkType_TestAction
            // 
            dbo_addDrinkTypeTest_002_DuplicateDrinkType_TestAction.Conditions.Add(checksumCondition3);
            resources.ApplyResources(dbo_addDrinkTypeTest_002_DuplicateDrinkType_TestAction, "dbo_addDrinkTypeTest_002_DuplicateDrinkType_TestAction");
            // 
            // dbo_addDrinkTypeTest_002_DuplicateDrinkType_PretestAction
            // 
            dbo_addDrinkTypeTest_002_DuplicateDrinkType_PretestAction.Conditions.Add(checksumCondition2);
            resources.ApplyResources(dbo_addDrinkTypeTest_002_DuplicateDrinkType_PretestAction, "dbo_addDrinkTypeTest_002_DuplicateDrinkType_PretestAction");
            // 
            // checksumCondition2
            // 
            checksumCondition2.Checksum = "-1250191351";
            checksumCondition2.Enabled = true;
            checksumCondition2.Name = "checksumCondition2";
            // 
            // checksumCondition3
            // 
            checksumCondition3.Checksum = "986240494";
            checksumCondition3.Enabled = true;
            checksumCondition3.Name = "checksumCondition3";
            // 
            // dbo_addDrinkTypeTest_002_DuplicateDrinkType_PosttestAction
            // 
            dbo_addDrinkTypeTest_002_DuplicateDrinkType_PosttestAction.Conditions.Add(emptyResultSetCondition2);
            resources.ApplyResources(dbo_addDrinkTypeTest_002_DuplicateDrinkType_PosttestAction, "dbo_addDrinkTypeTest_002_DuplicateDrinkType_PosttestAction");
            // 
            // emptyResultSetCondition2
            // 
            emptyResultSetCondition2.Enabled = true;
            emptyResultSetCondition2.Name = "emptyResultSetCondition2";
            emptyResultSetCondition2.ResultSet = 1;
            // 
            // dbo_addDrinkTypeTest_003_MissingParameterDrinkTypeData
            // 
            this.dbo_addDrinkTypeTest_003_MissingParameterDrinkTypeData.PosttestAction = null;
            this.dbo_addDrinkTypeTest_003_MissingParameterDrinkTypeData.PretestAction = null;
            this.dbo_addDrinkTypeTest_003_MissingParameterDrinkTypeData.TestAction = dbo_addDrinkTypeTest_003_MissingParameterDrinkType_TestAction;
            // 
            // dbo_addDrinkTypeTest_003_MissingParameterDrinkType_TestAction
            // 
            dbo_addDrinkTypeTest_003_MissingParameterDrinkType_TestAction.Conditions.Add(checksumCondition4);
            resources.ApplyResources(dbo_addDrinkTypeTest_003_MissingParameterDrinkType_TestAction, "dbo_addDrinkTypeTest_003_MissingParameterDrinkType_TestAction");
            // 
            // checksumCondition4
            // 
            checksumCondition4.Checksum = "1600337601";
            checksumCondition4.Enabled = true;
            checksumCondition4.Name = "checksumCondition4";
            // 
            // dbo_addDrinkTypeTest_004_ParameterTruncationData
            // 
            this.dbo_addDrinkTypeTest_004_ParameterTruncationData.PosttestAction = dbo_addDrinkTypeTest_004_ParameterTruncation_PosttestAction;
            this.dbo_addDrinkTypeTest_004_ParameterTruncationData.PretestAction = dbo_addDrinkTypeTest_004_ParameterTruncation_PretestAction;
            this.dbo_addDrinkTypeTest_004_ParameterTruncationData.TestAction = dbo_addDrinkTypeTest_004_ParameterTruncation_TestAction;
            // 
            // dbo_addDrinkTypeTest_004_ParameterTruncation_TestAction
            // 
            dbo_addDrinkTypeTest_004_ParameterTruncation_TestAction.Conditions.Add(checksumCondition5);
            resources.ApplyResources(dbo_addDrinkTypeTest_004_ParameterTruncation_TestAction, "dbo_addDrinkTypeTest_004_ParameterTruncation_TestAction");
            // 
            // checksumCondition5
            // 
            checksumCondition5.Checksum = "-1355332335";
            checksumCondition5.Enabled = true;
            checksumCondition5.Name = "checksumCondition5";
            // 
            // dbo_addDrinkTypeTest_004_ParameterTruncation_PretestAction
            // 
            resources.ApplyResources(dbo_addDrinkTypeTest_004_ParameterTruncation_PretestAction, "dbo_addDrinkTypeTest_004_ParameterTruncation_PretestAction");
            // 
            // dbo_addDrinkTypeTest_004_ParameterTruncation_PosttestAction
            // 
            resources.ApplyResources(dbo_addDrinkTypeTest_004_ParameterTruncation_PosttestAction, "dbo_addDrinkTypeTest_004_ParameterTruncation_PosttestAction");
        }

        #endregion


        #region Additional test attributes
        //
        // You can use the following additional attributes as you write your tests:
        //
        // Use ClassInitialize to run code before running the first test in the class
        // [ClassInitialize()]
        // public static void MyClassInitialize(TestContext testContext) { }
        //
        // Use ClassCleanup to run code after all tests in a class have run
        // [ClassCleanup()]
        // public static void MyClassCleanup() { }
        //
        #endregion


        [TestMethod()]
        public void dbo_addDrinkTypeTest_001_AddNewDrinkType()
        {
            DatabaseTestActions testActions = this.dbo_addDrinkTypeTest_001_AddNewDrinkTypeData;
            // Execute the pre-test script
            // 
            System.Diagnostics.Trace.WriteLineIf((testActions.PretestAction != null), "Executing pre-test script...");
            ExecutionResult[] pretestResults = TestService.Execute(this.PrivilegedContext, this.PrivilegedContext, testActions.PretestAction);
            // Execute the test script
            // 
            System.Diagnostics.Trace.WriteLineIf((testActions.TestAction != null), "Executing test script...");
            ExecutionResult[] testResults = TestService.Execute(this.ExecutionContext, this.PrivilegedContext, testActions.TestAction);
            // Execute the post-test script
            // 
            System.Diagnostics.Trace.WriteLineIf((testActions.PosttestAction != null), "Executing post-test script...");
            ExecutionResult[] posttestResults = TestService.Execute(this.PrivilegedContext, this.PrivilegedContext, testActions.PosttestAction);
        }
        [TestMethod()]
        public void dbo_addDrinkTypeTest_002_DuplicateDrinkType()
        {
            DatabaseTestActions testActions = this.dbo_addDrinkTypeTest_002_DuplicateDrinkTypeData;
            // Execute the pre-test script
            // 
            System.Diagnostics.Trace.WriteLineIf((testActions.PretestAction != null), "Executing pre-test script...");
            ExecutionResult[] pretestResults = TestService.Execute(this.PrivilegedContext, this.PrivilegedContext, testActions.PretestAction);
            // Execute the test script
            // 
            System.Diagnostics.Trace.WriteLineIf((testActions.TestAction != null), "Executing test script...");
            ExecutionResult[] testResults = TestService.Execute(this.ExecutionContext, this.PrivilegedContext, testActions.TestAction);
            // Execute the post-test script
            // 
            System.Diagnostics.Trace.WriteLineIf((testActions.PosttestAction != null), "Executing post-test script...");
            ExecutionResult[] posttestResults = TestService.Execute(this.PrivilegedContext, this.PrivilegedContext, testActions.PosttestAction);
        }
        [TestMethod()]
        public void dbo_addDrinkTypeTest_003_MissingParameterDrinkType()
        {
            DatabaseTestActions testActions = this.dbo_addDrinkTypeTest_003_MissingParameterDrinkTypeData;
            // Execute the pre-test script
            // 
            System.Diagnostics.Trace.WriteLineIf((testActions.PretestAction != null), "Executing pre-test script...");
            ExecutionResult[] pretestResults = TestService.Execute(this.PrivilegedContext, this.PrivilegedContext, testActions.PretestAction);
            // Execute the test script
            // 
            System.Diagnostics.Trace.WriteLineIf((testActions.TestAction != null), "Executing test script...");
            ExecutionResult[] testResults = TestService.Execute(this.ExecutionContext, this.PrivilegedContext, testActions.TestAction);
            // Execute the post-test script
            // 
            System.Diagnostics.Trace.WriteLineIf((testActions.PosttestAction != null), "Executing post-test script...");
            ExecutionResult[] posttestResults = TestService.Execute(this.PrivilegedContext, this.PrivilegedContext, testActions.PosttestAction);
        }
        [TestMethod()]
        public void dbo_addDrinkTypeTest_004_ParameterTruncation()
        {
            DatabaseTestActions testActions = this.dbo_addDrinkTypeTest_004_ParameterTruncationData;
            // Execute the pre-test script
            // 
            System.Diagnostics.Trace.WriteLineIf((testActions.PretestAction != null), "Executing pre-test script...");
            ExecutionResult[] pretestResults = TestService.Execute(this.PrivilegedContext, this.PrivilegedContext, testActions.PretestAction);
            // Execute the test script
            // 
            System.Diagnostics.Trace.WriteLineIf((testActions.TestAction != null), "Executing test script...");
            ExecutionResult[] testResults = TestService.Execute(this.ExecutionContext, this.PrivilegedContext, testActions.TestAction);
            // Execute the post-test script
            // 
            System.Diagnostics.Trace.WriteLineIf((testActions.PosttestAction != null), "Executing post-test script...");
            ExecutionResult[] posttestResults = TestService.Execute(this.PrivilegedContext, this.PrivilegedContext, testActions.PosttestAction);
        }



        private DatabaseTestActions dbo_addDrinkTypeTest_001_AddNewDrinkTypeData;
        private DatabaseTestActions dbo_addDrinkTypeTest_002_DuplicateDrinkTypeData;
        private DatabaseTestActions dbo_addDrinkTypeTest_003_MissingParameterDrinkTypeData;
        private DatabaseTestActions dbo_addDrinkTypeTest_004_ParameterTruncationData;
    }
}
